package com.lemote.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 
 * 
 * @author gmg
 * @version 1.0
 * @created 2011-7-31 下午01:02:16
 */
@Entity
@Table(name="smt_ftReport")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class FtReport extends IdEntity {

	private CircuitBoard board;
	/**
	 * 位置
	 */
	private String location;
	
	/**
	 * 错误代码
	 */
	private String errorcode;
	
	/**
	 * 生成岗位
	 */
	private String jobName;
	
	/**
	 * 测试时间
	 */
	private Date testDate;
	
	/**
	 * 测试人
	 */
	private User tester;
	
	/**
	 * 描述
	 */
	private String description;
	
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@ManyToOne
	@JoinColumn(name="boardId")
	public CircuitBoard getBoard() {
		return board;
	}

	public void setBoard(CircuitBoard board) {
		this.board = board;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getErrorcode() {
		return errorcode;
	}

	public void setErrorcode(String errorcode) {
		this.errorcode = errorcode;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public Date getTestDate() {
		return testDate;
	}

	public void setTestDate(Date testDate) {
		this.testDate = testDate;
	}

	@ManyToOne
	@JoinColumn(name="tester")
	public User getTester() {
		return tester;
	}

	public void setTester(User tester) {
		this.tester = tester;
	}
	
}
